<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
    <title>杭州住房公积金管理中心指纹认证系统 </title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/app/css/default.css"/>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/jquery/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/jquery/themes/icon.css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/jquery/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/jquery/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/app/js/finger.js" 
		charset="GBK"></script>
	<s:include value="/app/fingerdevice.jsp"></s:include>
	<script type="text/javascript">
      function reset_vendor(){
        a = $('#vendor').combobox('getData');
        if (a!=null && a.length>0){
	      $('#vendor').combobox('select', a[0].vendorid);
        }	
      }

      $(document).ready(function(){
        $('#templogin').linkbutton();
        $('#vendor').combobox({onLoadSuccess: reset_vendor});
  
        $('#login').click(function(){
	      if (get_finger_feature()==false) return;
	      $('#login_form').submit();
        });
  
        $('#logina').click(function(){
	      $('#rlogin_form').submit();
        });

        $('#login_form').keypress(function(event){
	      if (event.keyCode!=13){
		    return;
	      }
	      $('#login').click();
        });
      });
	</script>
  </head>
  
 <body style="background: url(<%=request.getContextPath()%>/app/img/background.jpg) no-repeat top center;">
 <div class="easyui-window" title="管理员登录" closable="false" maximizable="false" collapsible="false" 
   minimizable="false" icon="icon-save" resizable="false" shadow="false" border="false" 
   style="width:350px;text-align:center">
    <s:actionerror theme="simple"/>
    <s:form cssStyle="padding:10px 20px 10px 40px;margin-top:20px" id="login_form" 
    	method="post" action="login" theme="simple">
    	<s:hidden id="finger" name="finger"></s:hidden>
    	<hidden id="rootpath" value="<%=request.getContextPath()%>"></hidden>
    	<table>
    		<tbody>
    			<tr height="28px">
    				<td><s:label value="指纹厂商:" for="vendor"/></td>
    				<td><input valueField="vendorid" textField="vendorname" id="vendor"
    					name="vendor" class="easyui-combobox" url="queryVendors.action" 
    					editable="false" panelHeight="auto" style="width:100px"/></td>
    			</tr>
    			<tr height="28px">
    				<td><s:label value="管理员号:" for="workno"/></td>
    				<td><s:textfield id="workno" name="workno" maxlength="6" 
    					cssStyle="width:100px" cssClass="text_field_css"/></td>
    			</tr>
    		</tbody>
    		<tfoot>
    			<tr>
    				<td colspan="2" align="center" height="50">
            			<button id="login" class="buttons_css" style="width:60px" >登录</button>
            			<label style="width:20px"></label>
            			<button id="logina" class="buttons_css" style="width:80px" >密码登录</button>
    				</td>
    			</tr>
    		</tfoot>
    	</table>
    </s:form>
    <form id="rlogin_form" action="<%=request.getContextPath()%>/app/templogin.jsp"></form>
</div>
</body>
</html>
